package cn.stylefeng.guns.modular.pandian.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

/**
 * 盘点明细表
 */
@Data
@TableName("pandian_jihua_detailed")
public class PandianJihuaDetailed implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    
    /**
     * 状态
     */
    @TableField("inventory")
    private String inventory;
    
    /**
     * 类型
     */
    @TableField("pan_type")
    private String panType;

    /**
     * 盘点单id
     */
    @TableField("disk_id")
    private Long diskId;

    /**
     * 盘点名称
     */
    @TableField("disk_name")
    private String diskName;

    /**
     * 盘点库存id
     */
    @TableField("d_id")
    private Long dId;

    /**
     * 库存id
     */
    @TableField("stock_id")
    private Long stockId;

    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;

    /**
     * 仓库名称
     */
    @TableField("warehouse_name")
    private String warehouseName;

    /**
     * 库区id
     */
    @TableField("area_id")
    private Long areaId;

    /**
     * 库区名称
     */
    @TableField("area_name")
    private String areaName;

    /**
     * 库位id
     */
    @TableField("position_id")
    private Long positionId;

    /**
     * 库位编号
     */
    @TableField("position_number")
    private String positionNumber;

    /**
     * 托盘id
     */
    @TableField("tray_id")
    private Long trayId;

    /**
     * 托盘编号
     */
    @TableField("tray_number")
    private String trayNumber;

    /**
     * 商品id
     */
    @TableField("goods_id")
    private Long goodsId;

    /**
     * 商品名称
     */
    @TableField("goods_name")
    private String goodsName;

    /**
     * 商品编号
     */
    @TableField("goods_number")
    private String goodsNumber;

    /**
     * 单位
     */
    @TableField("goods_unit")
    private String goodsUnit;

    /**
     * 规格
     */
    @TableField("goods_specs")
    private String goodsSpecs;

    /**
     * 库存数
     */
    @TableField("num")
    private String num;

    /**
     * 库存体积
     */
    @TableField("volume")
    private String volume;

    /**
     * 盘点数
     */
    @TableField("true_num")
    private String trueNum;

    /**
     * 盘点体积
     */
    @TableField("true_volume")
    private String trueVolume;

    /**
     * 批次
     */
    @TableField("goodsbatchs")
    private String goodsbatchs;

    /**
     * 盘点批次
     */
    @TableField("new_goodsbatchs")
    private String newGoodsbatchs;

    /**
     * 交付客户id
     */
    @TableField("deliver_id")
    private Long deliverId;

    /**
     * 部门id
     */
    @TableField("dept_id")
    private Long deptId;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 创建用户
     */
    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private Long createUser;

    /**
     * 创建用户
     */
    @TableField("create_user_name")
    private String createUserName;

    /**
     *描述
     */
    @TableField("nodes")
    private String nodes;

    /**
     *盘点处理人
     */
    @TableField("deal_person")
    private String dealPerson;

    /**
     *盘点处理时间
     */
    @TableField("deal_time")
    private String dealTime;

    /**
     *处理描述
     */
    @TableField("deal_nodes")
    private String dealNodes;

    @Override
    public String toString() {
        return "PandianJihuaDetailed{" +
        "id=" + id +
        ", diskId=" + diskId +
        ", diskName=" + diskName +
        ", stockId=" + stockId +
        ", warehouseId=" + warehouseId +
        ", warehouseName=" + warehouseName +
        ", areaId=" + areaId +
        ", areaName=" + areaName +
        ", positionId=" + positionId +
        ", positionNumber=" + positionNumber +
        ", trayId=" + trayId +
        ", trayNumber=" + trayNumber +
        ", goodsId=" + goodsId +
        ", goodsName=" + goodsName +
        ", goodsNumber=" + goodsNumber +
        ", num=" + num +
        ", trueNum=" + trueNum +
        ", goodsbatchs=" + goodsbatchs +
        ", newGoodsbatchs=" + newGoodsbatchs +
        ", deliverId=" + deliverId +
        ", deptId=" + deptId +
        ", createTime=" + createTime +
        ", createUser=" + createUser +
        ", createUserName=" + createUserName +
        "}";
    }
}
